﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/ViewMasterPageMain.Master"
    Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Analiza Prehodnosti
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="InnerRightContent" runat="server">
    <h2>
        Analiza prehodnosti: letnik</h2>
    <form action="/Prehodnost/AnalizaPrehodnosti" id="prehodnostForm" method="post">
    Letnik študija
    <div class="smer">
        <%= Html.DropDownList("seznamLetnikov")%>
        <% string[] sa = (string[])ViewData["izbire"];
           string snacin = sa[0];
           string nacin = "redni";
           string programID = sa[1];

           if (snacin.Equals("false"))
               nacin = "izredni";

           string program = "";
           string[,] sifrant = (string[,])ViewData["sifrantSmeri"];

           for (int i = 0; i < sifrant.Length; i++)
               if (sifrant[i, 0].Equals(programID))
               {
                   program = sifrant[i, 1];
                   break;
               }
           
        %><br />
        <br />
        <%Response.Write("<b>Način študija: </b>" + nacin);%><a href="javascript:history.go(-3)">
            (spremeni)</a><br />
        <%Response.Write("<b>Smer študija: </b>" + program);%><a href="javascript:history.go(-2)">
            (spremeni)</a><br />
        <%Response.Write("<b>Leto študija: </b>" + sa[2]);%><a href="javascript:history.go(-1)">
            (spremeni)</a><br />
        <br />
    </div>
    <input name="potrdi" class="button" id="potrdi" type="submit" value="Potrdi" />
    </form>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="JQueryContent" runat="server">
</asp:Content>
